fixed minor snippet in edit view