fixed sloppy js in ng-if on boardsview