use event to update another window