moved page source to top level