updating front end with map