Added in dynamic template compiling to the container and panel elements.