changed template loading so that u dont have to put the template name in the view function.