moved renderSelected to DomElement