Change windows status