Refactored much code in ui.
Allowed navigation via keyboard listener