Added deselection if selected socket is clicked a second time