customer panel code cleaning