edit handler for results