filter active and completed todos