Fixed triggering confirmation messages boxes when more than one view is
open.