created two BOOL propert to check if alertview is shown in MainVC