element remains selected when opening editors