iOS6/7 Support
dismiss on popupViewController