#3 focus should be contained to topmost dialog

We should contain focus to the topmost pending dialog, we should be sure when attempting to wrap that the focus is allowed to leave the page still as well.