moved openPlaylist to a seperate file