add filter to display the list based on arraylist filtering