css fixes on templates