template: update user_history. temp