Changed implementations from function based views to class based views