add edit controller method