handle gate annotation command button