edit controller api