angular tasks rework to use api for filtering