implemented commands in controller and hooked them to UI (MVC pattern)