add filter function for staff controller.