Refactoring of Page: pages edition PHP code

Change-Id: Ibe8f1d37d8a8d9cf99d96e67dbd7c464103a6e02
Merge "Refactoring of Page: pages edition PHP code"