added caching for styles and scripts