finish navigation history function
update refresh function