fixing the menu to angularJS format