update dom content