UI code refactoring (sorry, first time using curses...)