changed dialogue to work with spotify API

also made changes to deal with corner cases