refactor rename file.

Cross platform , no need to redraw.