update AJAX function
add Resource BAO
init testing