tweaking html and adding more functionality to the js