added a timer to try and wait for dom elements to come available