clear the form when exit