Added capability to resize the window.