finish editing controller