adds elements prop back to routes