created controllers and updated js for map