updating connection between components