fixed issues with loading css and js resources