adding menu item click handler