Updating layout for medium