little refactor of ReferenceNode population/refresh
refrences can now be hidden
refreshing references now works