move Map component out of index.js