single page app logi updated in functions.php