add condition to list view