adds the neighbor view and some indexes and functions