Sorted up a mix up in a sequence of dialogs appearing