added stacked modal support