Added connection control from GUI and added Popup element.