changed standart index view method to class based view