changed the pixels to percentage