Modified Detail view to class based