fix issue of menu loading with page