working on the edit method with ujs