Added blocks functionality with RIButtonItems (from UIAlertView+Blocks https://github.com/jivadevoe/UIAlertView-Blocks )