Refactored to only connect when the button is pressed.
Cleaned up and added messages for connect, failure and disconnect.