Added undo for page copying