Modified removeTodo() to pass todo instead of index