Finished writting loadingmainactivity