minor html and css fixes in templates