updating layout and images