add api calls for filtering tasks