compare menu close when clicked