open links only if connected