loading existing pages for editing