created cancel button for updating a todo