added ajax function into map.js, added hidden input to map view to store id, added group to map controller to access id in view.