start to work with angular js, use ng-class to implement the toggle effect