rewrote register rtyle to fit with control panel style