makes ajustments to modals on page load