add functionality to give new todo a state