makes ajustments to modals on page load
Merge pull request #1473 from edx/adam/fix/a11y-modal-management

makes ajustments to modals on page load