Move dialog functions out of ui object, since they don't depend on ui object state. This lets them be used without an explicit  reference node.
Move dialog functions out of ui object, since they don't depend on
ui object state. This lets them be used without an explicit 
reference node.
mlhenderson/narrative,mlhenderson/narrative,pranjan77/narrative,jmchandonia/narrative,kbase/narrative,mlhenderson/narrative,msneddon/narrative,jmchandonia/narrative,kbase/narrative,pranjan77/narrative,briehl/narrative,jmchandonia/narrative,jmchandonia/narrative,psnovichkov/narrative,briehl/narrative,kbase/narrative,briehl/narrative,psnovichkov/narrative,msneddon/narrative,kbase/narrative,psnovichkov/narrative,msneddon/narrative,briehl/narrative,psnovichkov/narrative,psnovichkov/narrative,mlhenderson/narrative,kbase/narrative,mlhenderson/narrative,briehl/narrative,pranjan77/narrative,jmchandonia/narrative,msneddon/narrative,briehl/narrative,psnovichkov/narrative,msneddon/narrative,pranjan77/narrative,briehl/narrative,jmchandonia/narrative,kbase/narrative,msneddon/narrative,psnovichkov/narrative,jmchandonia/narrative,msneddon/narrative,pranjan77/narrative,pranjan77/narrative,pranjan77/narrative,mlhenderson/narrative