Replaced form code with render