add function which can disable redraw by config