added alert/actionsheet to action block so the block can reference it