html and js edited for navigation