Reengineered dismiss plugin