Block version

Remove delegate pattern and added block patter to manage alertview
buttons.