handle editing points