Fixed serious problem with positioning of overlay, dialog div, and text display