fix renderpage statement from upload to add page