refresh window after stack updating