Started to change data to history api