finishing up mobile, index.php logic