src: refractoring data exchange between main view and playlist view