fix template
use global variable for new_resource