added event listener which ges the value from  abutton, then calls the enterMapLocation function using the value as the argument, need to convert all the onclicks in the index.html to this format now