replaced generic views by class based ones for compat with django 1.5