add css and js and fix ref