add getItems function in menu object