fixed bug of takepage and css file