Reordered modal showing and location events.