Make the back and next button work.