collapse menu on selection