Fixed transmit button so the app doesn’t crash if it is clicked twice