added handler support for UIBarButtonItem. Added UIAlertView