integrated pagination and search for units