add base template and templates directory