close menu on click when collapsed