add listener to fix main page when a modal is shown, so if user refresh page, background page is still fix