updating layout and styles