detect function finished

structure
popup->detect->background->popup->download->background