modify the resize ui layout