iPad and iPhone fix

 issue of opening menu on orientation change