Added toggle on clicking on waveform (just for testing again)