Fixed dom presentation bugs