update to support stacking modals