move filePickerSpace = linkPickerSpace initialization before
linkPickerSpace gets extended to multiple spaces