cleaning up the map and form UI