don't generate history when not using the back button