add edit controller