added block handler for uialertview