activity showing in main activity loop