Only change data when button is pressed