add addAttr() and addMethod(), synchro ok with view