Many improvements. ng-repeat contains 3 separate pieces. Classtoggle function works.