Refactored playlists controller