basic functionality to add a todo