Refactoring, Set Renderer to DOM