dismiss menu after it is clicked