replacing function based views with class based views. not in templates yet