Moved updateLinks to stateManager