Added a connect button. Better connection error handling, but still doesn't work as I want.