data to layout