complete rewrite of main menu (work-in-progress)