Prints when the window is resized