persisting todo states