Allow the user to define custom bar buttons for done and cancel.