save new map without reloading the page