moved map to render after data was fetched