Class based view

Replacing form_detail on TemplateView and checking for ajax request