remove test_func, edit js and templates