fixed event listeners for the menu