detect browser back/forward clicked and refresh page content