add draw ecg handler