fix some page & js bugs