replace history only when unload event happens refs #141
reflect review comment refs #141
Merge pull request #142 from shimomura1004/id/141

replace history only when unload event happens refs #141