initial DOM refresh impl