added the ability to complete a todo