fixed #18 and adding confirmation to replace the existing fields