Changed to replace flash message div and fixed typo in variable name.

- Changed to replace flash message div when field value is changed to remove previous error message from screen after field values are changed.
- Fixed name of variable being passed in to copy method for overwriting existing items.

Issue #221