want to get dom-related methods out of layout object.