Adding the nav buttons and javascript actions on button click.