change the functino on click