fixed bug where in main dom was not appended but htmled