Moved loadingmainativty forward