added method to get all button titles in an actionsheet.