waits for the dom