change the connection event click to dblclick to hide and show the data box