modify map resize scripts