"add new script" button clears form and hidden ID field if the user edited then cancelled.