fixed some templates and permissions