if i take class TodoItem item outside the function and instead write return new TodoItem(), i can not access uid and other properties. and i dont know why as the object is being