added filter functionality for tasks