change debug to alert button click