added polling and workflow deletion