iMoved getStatesMap to form.js and renamed user_preference_dialog.html