update flex-box