work in progress, completed UI for Trigger and Condition apart from delete function