switched to dynamic layouting