changed the way content is resized