added button for switching between sine/square