toogle windows and close windows