code style improvements
retry dom wait if element goes stale