overhaul that included stylesheet switching