refactored DomBinding to add more classes