page tempalte tool bugs corrected