making submenus work on mobile devices