Page ads/edit refactoring and code comments
To make more readable and comprehensive codes