adding refresh on layout adjustment for connections