add traffic info in json object and close detailinfo window when user click background