add support for passing an 'index' to the actionsheet or alertview handler