added generic function to create a new history playlist