added the edit controller