relation reference: correctly initialize and set properties for widget