Added the functionality to remove an item from the todo list