Refactor datatable messages