added formatAlarmForMainCell to APIController