download heading finished

fix a lot of bugs and change some view