Added popoverViewCanBeDismissed to delegate