Added template for refdata to resource controller