add hooks, change js