a popover view class works like UIAlertView