watch jobsHistory.length instead of using ng-selected