now it quits on submenu exit, i promise