added loading to router