Removed redundant 'view own page' variable. Added helper routine for future use