set tab focus for map_response; code cleanup.