added delete functionality for dynamically added fields