Add dynamic fetch of relationships in viewer.  need to test still