Refactored css references to be dynamic