added the action listeners for the actual button clicks

buttons actually respond to mouse clicks now.
works for the dynamically generated buttons too