updated form erb to elimate unnecessary local variable