Updating markup and styles