Fixing some display issues for caption dialog