made some changes to update so it actually sends all window data and not just last entry