fixing the page path for modals