The name of this function is misleading, since it doesn't add an unfinished item to the finished list -- it actually adds the click handler for the complete button. It's also somewhat confusing that the button itself is created elsewhere, and the click handler is assigned here.