setting up class based views