Upgrade base template