set up other pages, fixed a few bugs