Bug fixes, added private variables instead of public for page type base