Upd: Controller state transitions refactor complete

Global UI changes previously handled in main's state transition
functions moved to controller. Fixes DRY violation and de-clutters main.