Change attribute name from "layout" to "name".

Add setting of @name.