add resource partial and css