changing menu behavior for ios devices