Added loading to loading controller