clean up for inline edit