handle of todo filter