made it so when clicking 'test data', it will clear the data first.