added page properties.
minor refactoring.