several tweaks to JS popup modals to fix a few inconsistencies.