Made back and forward go to respective pages.