Refactoring of ResourceFormBuilder

As in #159 
i don't like this kind of passing values. why don't you pass ``$element`` through method's argument?