connected/disconnected indicator in UI
fix NPE
Merge pull request #5 from kprevas/master

misc fixes