adding document rendering