added changes to display in response to different window sizes