fix styles and template