cleanup + add details row