Added readDataToData method when connect button is pressed