refactor cdr view