correctly disable close button
introduce auto-complete message and response type in JSON