conditional in edit action