Switch case set up for window types