added close behavior to menu button