add command to 1,show and hide tool bar;2,open preference