added tracking of window focus