added GetMainElement() to ElementBase