Changed templates to use Django Template Inheritance.