passing and rendering relationships data from main controller