Implemented CRUD for Template controller.