Changed the rendering method