reformat code
extends UActiveRecord instead CActiveRecord to add ability to config behaviors in modules
checking method exists widgetAttributes