fixed the disconnect button and restructured Client application to a thinner socketClient