set view directory and default extensions for templates