modified profile page to handle resizing more effectively.