append resources and modify css attributes