Updating template layout