Correct connection to data button clicked.