added selection buttons to editor template
added simple way to determine element id