updated the menu bar and the menu control using ng-show and $state.