Use refactored code in view, update get_playlist in server.