added views and made some minor corrections to class-based-views