use ngmodelcontroller instead of relying on class names