update user_history model from course controller