refactor connections sidebar to be used by pathways as well