class-based views. and template rendering