moved out UI and file code out of playlist