add replace_if view