Add the department filter and pagination