fixed nomethod error for views/edit