add command pallete
fix close