add waveform and code all buttons