modularize restyling plugin