mobile menu close function replaced