add a button and set button click action