re-indented some lines
pages now show correct titles
made page loading more explicit