add id to history response