Added code for exiting the Editor module after switching to another workflow step