refactoring. mainmenuController and gui are not used anymore