updating layout structure