Next button is showing even when pages are supposed to be hidden