refactor cdr_alert views