Made Scope page and api functions work