switch between window modes
bugfix switch
working window switch