add comment,modify setbutton function