adding and removing adapters in dialogs