converting the topmenu to AngularJS