fixed a bunch of little things, added checks to all pages