fix mode selection for android and make the cancel option ios only