check window name before display