add missing dialog.js
fix wrong arrow direction