fix for iPad and iPhone

 issue of opening menu on orientation change