created BrainView and supporting functions