update user_pref, use tpl