edit mode implemented