add code to read top sites
able to put data
fix some bugs, but still some remains