modified views to class based views