fix sandbox check
move sandbox checks to page.php