Scroll to top when showing page change. Fixed sidebar select showing page bug
rm some unused script
remove slow functions with innerHTML