routing onclick event from commands to menucommand