includes additional conditions to handle menus