cleanup controller