writing page changes