setting up dom