Racfactoring of the code

Introduced WebPageData
Introduced constants to promote reuse