implemented input-handling for all sub-menus