fix ajax search for document statuses