Dynamically Hiding Subpanels Based on Record Values not working in Sugar 13

I have followed the instructions at https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Dynamically_Hiding_Subpanels_Based_on_Record_Values/#Related which has worked in previous version of Sugar. However, in Sugar 13, the sub-panel show/hides but the data does not load unless the user interacts with this subpanel. 

The panel displays loading until I click on it. Maybe my relationship is incorrect. Thoughts?