added swap window in timer