src: refractoring playlist control