fixes to css dynamically loading