used ng-cloak to prevent menu flicking