fix if ios8 statement + changing mw.isIOS8() function to  new identifier