adding code to refresh the element when waiting for it to be clickable