Changed submenu closing behavior