moved device popup to loading