Added some functionality to the todo item