added click event for menu