made map changing smooth