Adds support for stacked dialogs