switching to class based view
syntax changed in django 1.5