Updated index.php to detect mobile vs desktop