organize the templates of backend