made a function for the search buttons on the map called registerButton