hide preview until code is loaded