add exception handling to controllers for editing results