introduce UserInterface class, add simple parameter support for web and cli