some fixes in template styles