binding menu event to command