coded exit and reset buttons in form