initialized the map on recording page