integrated the rollback warning with event dispatcher