solve the issue of searching by status