Registerd the rendering hander