add visible and hidden scopes to pages