why is the form not showing all the pages correctly?