Toggle window when toolbar button clicked