added ngClass and $apply to switch-directive's template to stay in sync with ngModel