Add ability to pass a function that renders the popup details
Build