Updating template layout problems