added alerts for window focus