consolidate shared server/client selectors in page.js.