VE-654: fix reference dialog tools; also fix organization of our dialog tools while I'm at it.