data dialog for multiple substances now behaves corectly