Successfully implemented the edit view in unit controller