Add support of history api