add function of reset to form