add javascript view hook
add css view hook