Fixed bug in new.html and edit.html with the object passed to render