add new global functions.php file, update to include that file and add currentUrl function in config.php