added ability for user to complete and incomplete a todo item
conditionally