Fix language selection issues

Make the Profiles dropdown have focus instead, so accidental keypresses
don't change the current language. Also make cancel cancel the language
setting and make user confirm changing it when switching settings pages.