added virtual dom to real dom render function