add code for changing the screen resolution