changing dimensions of the screen and graph details