Move save playlist code