hide command window when executing commands and fix annotate command