updating layout and url