Added GUI buttons, as well as disconnection handling.