Updated the connect button functionality. Before if you pressed the connect
button two times it would crash the program. Now it checks if the program
is connected already.