How to filter and view clients based on certain criteria