front end has to be merged with index.html or map.html