Add log for entering forground and background.
Refine ideitification for UITableView and UICollectionView