restyle p and default template