event cleanup, style cleanup