window mode changes added