Moved data loading and setting to adapter