ajax calls to remove and to filter