added in-focus to counter state