connetction bug partially fixed (does not work for nested views)