Replaced setTitle with correct function setWindowTitle