Fixing up js and styling for dialogs.
CSS cleanup.