trying to fix main-text preview on page load