history update

on opening shows history, and when click back, it re-write history