delegate method for alert
delegate methods
Merge branch 'delegate'