Fixed the header menu controlling issue on iPad