bug fix for multiple data editor windows and/or nullpointer error when opening a datafile