added loading controller