added toggleMenu method