integrate main activity check