disable history.back during offline mode