Add revert action in editor