(#28) Added buttons to the demo for adding gates.