fixed the generate menu function to work properly with call from index.php - interfacing with navbar now working