Minor code optimizations
Replacing the sidebar by an error message if connection to server fails (fixes #15)