migrate to class based views