moved select all request logic to parent for easier reuse.