Dialog almost finished. When the global listeners are implemented the scrolling will work.