fixed fatal error in page controller and triggered 404 error