Use busyWait to wait for replacing the menu