Added windowsize method for changing the window size.