hide command window when executing commands and fix annotate command

hide command window when executing commands and fix annotate command