window toggle improved