listens for MQTT messages and allows the user to type into a textbox