add new init function && add random colors in ng-repeat