Changed menu api

Changed the menu api with the new metaclass.