Color picker; refactor response code; fix some bugs