fixed styles and got it working. Bug found: if connected to itself, it breaks.