template and css sanity upgrade