code refactor: new scope properties (connections, field, show, etc), wich contains another methods and flags, separate message from script (now is get by $http.get)