Added win text and fixed focus bug