Various minor fixes to ManageStates.js dialog