repaired error with adding pages