add pagination and search for resource ids