refactor playlist and listings controller