fixed the errors in the map activity but still needs work and intergration with the search algorithm