change type's destroy method and add some css style