fix menu show/hide problem