added legs to layout