Added conditional logic to simple workflow
Refactor for table editor