created handler to send file list in json format