proper waveform display, added slider