Corrected css issues with the dialog, other fixes.