update the focused class