restyle base template