Remove UI state when following links