Display the data & change state on click button