Adding button event for menu