added check for document. response not showing still