simplify #prepare_submenu_pages