Do not call delegate twice when cancel or select button has been tapped twice