change box to flex