Added hook to allow external layout rendering such as HTML rendering