fix addFocus and removeFocus for elements with generated ids