adding a timeout for the waiting elements: