added todolist model to handle state of filter