updated how mobile menu is handled