bugfix: page interceptor should clear doc after all interceptors are executed
bugfix: only add global container when there are messages to be rendered