resize ace after switching to the another mode