add base templates and main application file