Cleanup for user-setting, use a tiny bit of AJAX also.