added element context api; edge arrows now rendering properly