added easier way of resizing windows