$playlist_id variable initialized twise, so refactored to separate varibles
Modified routing for playlist