Changed switch for static dictionary to map window title