added functions to insert, delete, and move pages.