Resolved the issue of resetting the info on pressing enter and not clearing the tags on resetting