change to class based views