more refactoring to put dataviews in windows, pass down config