add button click functionality