added render function in dom binding