move CSS class logic into dba class and add send status