Add a button to call a function