added styles for messages and fix disconnect