connecting in didappear and not did load