set up masterVC as the delegate to alertVC