added user_id to history log