handle state changes when a mailbox is re-selected