update modules and improve mobile script to handle menus on mobile devices