moved playlist code to another file