automatic open/close of Tool Window

#71