Moved getting/setting page name

Moved the getting and setting of the page name to 'get_pagename.php'