General function for loading data for settings tabs