added dependencies with bower
ported code to angular
disable form on disconnection