added optional window name