updating layout