Add keep cursor position the center of window