fix browser back/forward buttons