Replaced form code with render ref to partial