making playlist more functional
slicing up code, add playlist update code and introduce new bugs