code changes related to map view