switched to class based views and started base.html