Added submenu toggle feature