now handles focus lost