making it so the main index page can run in playlist mode