Add callbacks to action buttons.