moved check for preview mode "visitor" to YUI before registering the DialogManager #258