Fixed disconnect and message.
Improved templates for web app.