finish editing item