add index to templates and change local index to indexdefault