added preliminary edit functionality