add a template preloading for pop-up