beforeAppend for cell