introduced RESTfull api to retrieve menus (by AJaX)