fix iOS buttons, testing for indexOf