set form's accept and cancel buttons to calculate and clear, respectively