add error handling to incorrect entries to main_menu in ui