using class based view