apply changes on templates