Added a few methods to control the window