auto close menu on select