add render function, remove test.php