improvements to the new class-based views

[originally "edited some CBV codes", merged by @joshdata]