add edit option in batch generator