1st draft of registering UI elements (issue #547)