using filter (with workaround) to clear completed todos