More reasonable rendering API
Now passing the dom api to the activate function