moved dom init to renderer constructor