fix next button bug; add checks to page 4; add back button