fixed performance issues in brain viz