refactored base template into project directory