change hierarchy to have better height calculation and increase box width