small style changes and working on reconnect

small style changes and working on reconnect