Move render methods to render.php