Opens and Closes windows in a session