allow for passing a root element for the main view