add unload handler at css