working on class based views