changed pixels to screen dimensions