remove FlowLayout, replace it with dynamic box layouts