controllers for map functionality