Adding border style, clearing event handlers on connect