Move function template into a computed property of UIConnection.

Note: need to find some way to expose editableAttributes interface for UIConnection