Better UI for debugging, and fixes custom message editing bug