added confirmation dialog to Revert