convert contactdetail view to class-based view