reorganized front end js
added download button in the navigation