finally got pages to work.  it now can load templates