code changes for edit listing