implemented api call for menu