update sample to fix navigation button