Implemented download button in json output dialog