added comments to referenceUI.js