Pushing state on loading with history api