More parts to make the custom elements work
Bugfixes for using the basic viewer