add edit controller and template