hide menu to fix flicker