added ability to pass a collapse link/id to the element.