ended controller