added handling non-JSON response
fixed false error msg on delete file
set focus in panels