add userid into history